package king.dominic.jcamera;

import android.Manifest;
import android.app.Activity;
import android.support.annotation.RequiresPermission;

import java.io.File;

/**
 * Created by DominicKing on 2018/1/22.
 * ICameraView
 */

public interface ICameraView {
    @RequiresPermission(Manifest.permission.CAMERA)
    void onResume(Activity activity);

    void onPause();

    void takePicture(File file);

    void requestCurrentBitmap(CameraCallback callback);

    void openLight();

    void closeLight();

    boolean isOpenLight();
}
